//
//  UIView+JwScreen.h
//  JwPack
//
//  Created by 陈警卫 on 2024-07-29.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (JwScreen)

+ (CGRect)jw_bounds;

+ (CGSize)jw_size;

+ (CGFloat)jw_width;

+ (CGFloat)jw_height;

/// 电池栏高度
+ (CGFloat)jw_batBarHeight;

/// 下巴高度
+ (CGFloat)jw_bottomBarHeight;

/// 判断刘海屏
+ (BOOL)jw_isScreenBangs;

/// 导航栏高度
+ (CGFloat)jw_navBarHeight;

+ (CGFloat)jw_navBatBarHeight;

/// tab高度
+ (CGFloat)jw_tabBarHeight;

+ (CGFloat)jw_tabBottomHeight;

/// 基础尺寸
+ (CGSize)jw_baseSize;

/// 基础宽度比例
+ (CGFloat)jw_scaleWidth;

/// keyWindow
+ (UIWindow *)jw_keyWindow;

/// normalWindow
+ (UIWindow *)jw_normalWindow;

/// window
+ (UIWindow *)jw_window;

/// 最前导航控制器
+ (UINavigationController *)jw_frontNC;

/// 最前导航控制器
+ (UINavigationController *)jw_frontNCFromVC:(UIViewController *)vc;

@end

NS_ASSUME_NONNULL_END
